package com.enniswu.weitter.notification;


import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.enniswu.weitter.R;
import com.enniswu.weitter.base.BaseFragment;
import com.enniswu.weitter.entity.Message;
import com.enniswu.weitter.widget.adapter.NotificationAdapter;

import java.util.ArrayList;

import butterknife.BindView;

public class NotificationFragment extends BaseFragment {

    @BindView(R.id.rv_notification)
    RecyclerView rvNotification;

    @Override
    protected int setContentView() {
        return R.layout.fragment_notification;
    }

    @Override
    protected void onCreateView(View contentView) {
        setTitle(getString(R.string.item_bottom_notification));
        NotificationAdapter adapter = new NotificationAdapter(new ArrayList<Message>(0));
        rvNotification.setLayoutManager(new LinearLayoutManager(getContext()));
        rvNotification.setAdapter(adapter);
    }
}
